﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="DistributionRelationByCom.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.DistributionManage.DistributionRelationByCom" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<br />
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">按企业查看配送关系</a></li>
            <li><a href="DistributionRelationByHos.aspx?procureCatalogId=<%= Request.QueryString["procureCatalogId"] %>">
                按医疗机构查看配送关系</a></li>
        </ul>
    </div>
    <div class="maincon">
        <div id="note">
            产品信息</div>
        <div id="note2">
        </div>
        <table>
            <tr>
                <th align="right" width="20%">
                    <asp:Label ID="lblGoodsNameTag" runat="server" Text="产品名称："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblGoodsName" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblOutlookcTag" runat="server" Text="规格型号："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblOutlookc" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    <asp:Label ID="lblMaterialTag" runat="server" Text="材质："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblMaterial" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblUnitTag" runat="server" Text="单位："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblUnit" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    <asp:Label ID="lblCompany_ZBTag" runat="server" Text="投标企业："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblCompany_ZB" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblCompany_SCTag" runat="server" Text="生产厂家："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblCompany_SC" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="listcon">

        <asp:Repeater runat="server" ID="rptCompany" OnItemDataBound="rptCompany_ItemDataBound">
            <HeaderTemplate>
                <table class="mainlist">
                    <tr>
                        <th style="width: 40px">
                            序号
                        </th>
                        <th style="width: 150px">
                            配送企业
                        </th>
                        <th>
                            需配送医疗机构
                        </th>
                        <th style="width:70px">
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Container.ItemIndex+1 %>
                    </td>
                    <td align="left">
                        <%# Eval("CompanyName")%>
                    </td>
                    <td align="left">
                        <table class="innertable2" align="left">
                            <asp:Repeater runat="server" ID="rptHospital" OnItemDataBound="rptHospital_ItemDataBound"
                                OnItemCommand="rptHospital_ItemCommand">
                                <ItemTemplate>
                                    <tr class="dashed">
                                        <td style="width: 250px">
                                            <%# Eval("HospitalName")%>
                                        </td>
                                        <td>
                                            <%# Convert.ToBoolean( Eval("DistributionIsUsing")) ? "已启用" : "未启用"%>
                                        </td>
                                        <td>
                                            <asp:Literal ID="ltlFlow" runat="server" Text='<%# Eval("FlowID")%>'></asp:Literal>
                                        </td>
                                        <td>
                                            <a href="DistributionRelationEdit.aspx?procureCatalogId=<%=Request.QueryString["procureCatalogId"] %>&hospitalId=<%#Eval("HospitalID") %>&companyId=<%# Eval("CompanyID_PS") %>">
                                                编辑</a> |
                                            <hz:HzLinkButton ID="lbtnDel" runat="server" CommandName="Del" OnClientClick="if(!this.disabled){return  confirm('确认要删除此行信息吗？');}else{return false;}"
                                                CommandArgument='<%# Eval("procureCatalogId") +"," +Eval("HospitalID")+","+Eval("CompanyID_PS")+","+Eval("DistributionIsUsing") %>'
                                                OperateType="编辑">删除</hz:HzLinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                    <td width="70px" valign="top">
                        <a href="RelationHospitalEdit.aspx?procureCatalogId=<%=Request.QueryString["procureCatalogId"] %>&companyId_PS=<%# Eval("CompanyID") %>">
                            <img src="../../lib/images/add.gif" align="middle" alt="" >增加医疗机构</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
